/**
 * Project Name:apesay
 * File Name:ApesayConstants.java
 * Package Name:sidland.apesay.utils
 * Date:2015年11月7日下午5:59:01
 * Copyright (c) 2015, sid Jenkins All Rights Reserved.
 * 
 *
*/

package com.apesay.utils;


import java.util.Properties;

/**
 * ClassName:ApesayConstants
 * Date:     2015年11月7日 下午5:59:01 
 * @author   sid
 * @see 	 
 */
public class ApesayConstants {
	
	public static String mongoDBHOSTS;
	public static String momgoDBPORTS;
	
	public static String mongoDBIP;
	public static String mongoDBPORT;

	/** mogoDB 名称 */
	public static String mongoDBName;
	public static String mongoDBCheck;
	public static String mongoDBUser;
	public static String mongoDBPassword;
	/** mongodb连接数 */
	public static String mongodbConnectionsCount;
	
	public static final String sha512_salt = "apesay!@#";
	public static final String DEFAULT_MSG = "您说的什么我不太懂呢";
	
	static{
		Properties p = PropertiesUtil.getProperties("application.properties");
		/**
		 * mongodb配置
		 */
		mongoDBName= p.getProperty("mongoDBName");
		mongodbConnectionsCount= p.getProperty("mongodbConnectionsCount");
		mongoDBHOSTS = p.getProperty("mongoDBHOSTS");
		momgoDBPORTS = p.getProperty("mongoDBPORTS");
		mongoDBIP= p.getProperty("mongoDBIP");
		mongoDBPORT= p.getProperty("mongoDBPORT");
		mongoDBCheck= p.getProperty("mongoDBCheck");
		mongoDBUser= p.getProperty("dbuser");
		mongoDBPassword= p.getProperty("dbpassword");
	}
}

